/**
 * Project Name:cms
 * File Name:ICommentService.java
 * Package Name:com.briup.apps.cms.service
 * Date:2018年9月19日上午10:23:56
 * Copyright (c) 2018, chenzhou1025@126.com All Rights Reserved.
 *
*/

package com.briup.cms.service;

import com.briup.cms.bean.Comment;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

/**
 * 评论相关服务接口
 */
public interface ICommentService {
	// 审核评论，状态：0-待审核，1-不通过，2-通过
	void checkComment(int id,int status) throws CustomerException;

	// 分页查询所有评论
	PageInfo<Comment> pageQuery(int pageNum, int pageSize, String keywords);

	// 通过id删除评论
	void deleteById(int id) throws CustomerException;

	// 批量删除评论
	void batchDelete(int[] ids) throws CustomerException;
}

